MailPoet\Migrations\Db\Migration_20221028_105818 C

Total Complexity 108
Dependencies 16
Dependents 0
Total lines 1,074
Lines of code 905
Logical lines of code 277
Comment lines 60
Methods 51
Properties 3

Methods 51

Method Rating Maintainability Complexity Lines of code
migrateEmailActionsFilters()
B
40 17 57
migrateWooSubscriptionsDynamicFilters()
A
48 7 32
migratePurchasedInCategoryDynamicFilters()
A
48 7 32
migratePurchasedProductDynamicFilters()
A
48 7 32
migrateSerializedFilterDataToNewColumns()
S
51 7 25
removeDeprecatedStatisticsIndexes()
S
51 4 28
fixScheduledTasksSubscribersTimestampColumns()
S
53 3 25
moveGoogleAnalyticsFromPremium()
S
53 3 25
updateMetaFields()
S
59 3 13
run()
S
52 2 25
pauseTasksForPausedNewsletters()
S
53 2 25
fixNotificationHistoryRecordsStuckAtSending()
S
53 2 23
subscribers()
S
48 1 38
updateNullInUnsubscribeStats()
S
60 2 14
updateLastSubscribedAt()
S
60 2 13
updateSentUnsubscribeLinksToInstantUnsubscribeLinks()
S
61 2 12
newsletters()
S
53 1 26
sendingQueues()
S
56 1 21
statisticsWoocommercePurchases()
S
56 1 20
scheduledTasks()
S
56 1 20
statisticsClicks()
S
57 1 19
statisticsOpens()
S
58 1 18
segments()
S
58 1 17
newsletterTemplates()
S
58 1 17
newsletterLinks()
S
59 1 16
statisticsUnsubscribes()
S
59 1 16
forms()
S
60 1 15
getDbVersion()
S
71 2 5
moveNewsletterTemplatesThumbnailData()
S
64 2 10
scheduledTaskSubscribers()
S
61 1 14
subscriberSegment()
S
60 1 14
dynamicSegmentFilters()
S
61 1 14
subscriberTag()
S
62 1 13
subscriberCustomField()
S
62 1 13
userFlags()
S
62 1 13
newsletterOption()
S
62 1 13
statsNotifications()
S
62 1 13
statisticsNewsletters()
S
62 1 13
customFields()
S
62 1 13
settings()
S
63 1 12
newsletterOptionFields()
S
63 1 12
featureFlags()
S
63 1 12
newsletterSegment()
S
63 1 12
tags()
S
63 1 12
newsletterPosts()
S
63 1 12
userAgents()
S
64 1 11
statisticsBounces()
S
64 1 11
statisticsForms()
S
64 1 11
log()
S
64 1 11
sqlify()
S
65 1 8
subscriberIps()
S
66 1 9